<?php /* Smarty version Smarty-3.1.21-dev, created on 2018-03-06 21:55:58
         compiled from "/data/wwwroot/61kq.com/uploads/app/template/ask/addquestion.htm" */ ?>
<?php /*%%SmartyHeaderCode:19076507205a9e9dee469208-41804198%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '13ba9dc3dc36d17cd898d5aa0f85d10c50358015' => 
    array (
      0 => '/data/wwwroot/61kq.com/uploads/app/template/ask/addquestion.htm',
      1 => 1516967808,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19076507205a9e9dee469208-41804198',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'qclist' => 0,
    'config' => 0,
    'ask_style' => 0,
    'plusstyle' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_5a9e9dee5187d7_62961872',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5a9e9dee5187d7_62961872')) {function content_5a9e9dee5187d7_62961872($_smarty_tpl) {?><?php if (!is_callable('smarty_function_url')) include '/data/wwwroot/61kq.com/uploads/app/include/libs/plugins/function.url.php';
?><?php global $db,$db_config,$config;eval('$paramer=array("item"=>"\'qclist\'","nocache"=>"")
;');$qclist=array();
		$ParamerArr = GetSmarty($paramer,$_GET);
		$paramer = $ParamerArr[arr];
		$Purl =  $ParamerArr[purl];
        global $ModuleName;

		include(PLUS_PATH.'/ask.cache.php');
		
		if(!$paramer[classid])
		{
			$askArr = $ask_index;

		}else{
			$askArr = @explode(',',$paramer[classid]);
		}
		$i=0;
		foreach($askArr as $key=>$value)
		{
			$i++;
			$askArray['key'] = $i;
			$askArray['id'] = $value;
			$askArray['name'] = $ask_name[$value];
			$askArray['pic'] = $ask_pic[$value]; 
			$askArray['intro'] = $ask_intro[$value];
			$qclist[] = $askArray;
			if($paramer[limit] && $i>=$paramer[limit])
			{
				break;
			} 
		}
		if($paramer[son]){
			foreach($qclist as $key=>$val){ 
				foreach($ask_type[$val['id']] as $v){
					$qclist[$key][son][]=array('name'=>$ask_name[$v],"id"=>$v);
				} 
			}
		}  
		 ?>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['askstyle']->value)."/header.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
  
<style>
.quiz_box{
	z-index: 2;
}
</style>
<div class="content ">
	<div class="quiz">
		<div class="quiz_con">
			<div class="ask_tit_que">我要提问</div>
			<div class="clear"></div>
			
			<form id='myform' name="myform" target="supportiframe" action="<?php echo smarty_function_url(array('m'=>'ask','c'=>'save'),$_smarty_tpl);?>
" method="post" onSubmit="return checkform();">
				<div class="quiz_fl">
					<input name="title" type="text" placeholder="问题标题" id="title" class="quix_txt"  onblur="if(this.value==''){this.value='问题标题'}" onclick="if(this.value=='问题标题'){this.value=''}" value="问题标题"/>
					<div class="quiz_chi">
						<span>选择问题种类</span> 
						<div class="quiz_box">
							<div class="quiz_box_first">
								<div class="quiz_box_title">选择分类：</div>
								<ul class="quiz_select">
									<?php  $_smarty_tpl->tpl_vars['qclist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['qclist']->_loop = false;
$qclist = $qclist; if (!is_array($qclist) && !is_object($qclist)) { settype($qclist, 'array');}
foreach ($qclist as $_smarty_tpl->tpl_vars['qclist']->key => $_smarty_tpl->tpl_vars['qclist']->value) {
$_smarty_tpl->tpl_vars['qclist']->_loop = true;
?>
										<li class="qc<?php echo $_smarty_tpl->tpl_vars['qclist']->value['id'];?>
">
											<a href="javascript:void(0)" onclick="getclass('<?php echo $_smarty_tpl->tpl_vars['qclist']->value['id'];?>
','<?php echo $_smarty_tpl->tpl_vars['qclist']->value['name'];?>
','<?php echo smarty_function_url(array('m'=>'ask','c'=>'qclass'),$_smarty_tpl);?>
')"><?php echo $_smarty_tpl->tpl_vars['qclist']->value['name'];?>
</a>
										</li>
									<?php } ?>  
								</ul>
								<div class="quiz_select_line"></div>
							</div>
							<div class="quiz_box_second">
								<div class="quiz_box_title"></div>
								<ul class="quiz_select"> </ul>
							</div>
						</div> 
						<input name='cid' type='hidden' value=''>
					</div>
				</div>
				<div class="quiz_nr">
					<h3>问题补充：</h3>
 					<?php echo '<script'; ?>
 id="content" name="content" type="text/plain" style="width:600px; height:250px;"><?php echo '</script'; ?>
>
				</div> 
				<?php if (strpos($_smarty_tpl->tpl_vars['config']->value['code_web'],"职场提问")!==false) {?>
					<?php if ($_smarty_tpl->tpl_vars['config']->value['code_kind']==3) {?>	
						<div style="width:200px; float:left; margin-top:10px;">
							<div id="popup-captcha" data-id='subask' data-type='click'></div>
							<input type='hidden' id="popup-submit">
						</div>
					<?php } else { ?>
						<div class="affirm" style="padding-top:10px;width:100%; float:left">
							<span  class=" fl" style="line-height:23px;"> 验证码：</span>
							<input class="quix_input fl" id="ask_CheckCode" type="text"  placeholder="请输入验证码" onblur="if(this.value==''){this.value='请输入验证码'}" onclick="if(this.value=='请输入验证码'){this.value=''}" value="请输入验证码" maxlength="4" name="authcode" style="width:100px" >
							<img  class="fl" id="vcode_imgs" src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/app/include/authcode.inc.php" onclick="checkCode('vcode_imgs');">
						</div>
					<?php }?>
				<?php }?>
				<div class="ask_affirm">
					<input name='submit' type="submit" id='subask' value="确认发起" class="ask_affirm_bth" />
				</div>
			</form>
		</div>
	</div>
</div> 

<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/jquery-1.8.0.min.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" type="text/javascript"><?php echo '</script'; ?>
>
<link href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/css/layui.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css" /><?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/layui.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
><?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/phpyun_layer.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['ask_style']->value;?>
/js/question.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" type="text/javascript"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/public.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" language="javascript"><?php echo '</script'; ?>
>
<!--[if IE 6]>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/png.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
DD_belatedPNG.fix('.png,.attention .watch_gz');
<?php echo '</script'; ?>
>
<![endif]-->
<?php echo '<script'; ?>
 type="text/javascript"> 
var searchurl="<?php echo smarty_function_url(array('m'=>'ask','c'=>'autosearch'),$_smarty_tpl);?>
";
var keyurl="<?php echo smarty_function_url(array('m'=>'ask'),$_smarty_tpl);?>
/index.php?c=search";
<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 charset="utf-8" src="<?php echo $_smarty_tpl->tpl_vars['plusstyle']->value;?>
/ask.cache.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/geetest/gt.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/geetest/pc.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" type="text/javascript"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/ueditor/ueditor.config.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/ueditor/ueditor.all.min.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 language="javascript">
	var editor = UE.getEditor('content',{
		toolbars:[[]],wordCount:false,elementPathEnabled:false,initialFrameHeight:250
	});
<?php echo '</script'; ?>
>
<iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['askstyle']->value)."/footer.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
   <?php }} ?>
